import vue from '@vitejs/plugin-vue'
import { viteMockServe } from 'vite-plugin-mock'
import path from 'path'
/**
 * https://vitejs.dev/config/
 * @type {import('vite').UserConfig}
 */
export default {
    resolve: {
        alias: {
            '@': path.resolve(__dirname, 'src'),
            comps: path.resolve(__dirname, 'src/components'),
            apis: path.resolve(__dirname, 'src/apis'),
            views: path.resolve(__dirname, 'src/views'),
            utils: path.resolve(__dirname, 'src/utils'),
            router: path.resolve(__dirname, 'src/router'),
            plugins: path.resolve(__dirname, 'src/plugins'),
        }
    },
    plugins: [vue(), viteMockServe({ supportTs: false })],
}
